package com.truckdispatching.http.controller;

import java.util.HashMap;

import com.truckdispatching.UserManager;
import com.truckdispatching.http.util.TDHttpController;
/**
 * 退出
 * @author harry
 *
 */
public class LogoutHttpController extends TDHttpController {
	
	@Override
	public String getRequestUrl() {
		return mHostUrl + "/wap/logout.do";
	}

	public void sendRequest() {
		HashMap<String, String> params = new HashMap<String, String>();
		params.put("jsessionid", UserManager.getToken());
		sendRequest(params,false);
	}

	@Override
	public void onSuccess(String response) {
		callOnResponseListener(null);
	}

	@Override
	public void onError(int errorCode, String errorMessage) {
		callOnResponseErrorListener(errorCode, errorMessage);
	}
}
